Get Referral Program List
GET :http://<base_url>/digipay/v3/reward_promotion/referral_program
This api is used to assign bulk/internal products to the threshold of the agent and create a threshold detail
QUERY PARAMS:-
Parameter | Type | Description | Value |
---|---|---|---|
user_id | String | integer value showing the user_type where user_type can be customer,agent and merchant | 2 |
HEADERS:-
Parameter | Type | Description | Value |
---|---|---|---|
Authorization | String | It is a combination of type and token to authenticate user for the given token | Token duik7309njdlkhdauhknksadhjkas986876sd873j |
CompanyID | String | Company_id is a unique primary id, that is represent company detail | 76bc712200ca444fa334f9e55e5fd7a8 |
Request Body:-
Request Example
curl --request GET \
--url http://192.168.1.102:8014/digipay/v3/notification/notification \
--header 'Authorization: Token duik7309njdlkhdauhknksadhjkas986876sd873j' \
--header 'CompanyID: 7753ad6bd8cf48f5b1312fd21eb36588' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"user_id": "1dc947afefad4fea82a9c798eec4507e."
}
'
Response:-
Response 200(OK)
{
"success": 1,
"error": [],
"data": {
"notification": [
{
"id": "5eeed854720d4730bff8b30a3fb5ed5e",
"user_id": "1",
"is_read": 1,
"notification_title": "Title",
"notification_body": "Body",
"notification_type": 12,
"notification_event_type": 1,
"created_date": 1658686686,
"updated_date": 1658686686
}
]
}
}
Response 400(BAD REQUEST)
{
"success": 0,
"error"": [1],
"data": {
"message": "BAD_REQUEST",
}
}
RESPONSES :-
Status Code | Description |
---|---|
200 | OK |
400 | BAD REQUEST |
404 | NOT FOUND |
500 | INTERNAL SERVER ERROR |